using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class Function_tempMap : EntityTypeConfiguration<Function_temp>
    {
        public Function_tempMap()
        {
            // Primary Key
            this.HasKey(t => t.VOID);

            // Properties
            this.Property(t => t.FUNCNAME)
                .HasMaxLength(50);

            this.Property(t => t.CODE)
                .HasMaxLength(30);

            this.Property(t => t.USERACC)
                .HasMaxLength(100);

            this.Property(t => t.File_Primary_Key)
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("Function_temp");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.FUNCNAME).HasColumnName("FUNCNAME");
            this.Property(t => t.CODE).HasColumnName("CODE");
            this.Property(t => t.ACCCATEGORY).HasColumnName("ACCCATEGORY");
            this.Property(t => t.MODULE).HasColumnName("MODULE");
            this.Property(t => t.VOID).HasColumnName("VOID");
            this.Property(t => t.PROJECT).HasColumnName("PROJECT");
            this.Property(t => t.USERACC).HasColumnName("USERACC");
            this.Property(t => t.File_Primary_Key).HasColumnName("File Primary Key");
            this.Property(t => t.Dental_Integration).HasColumnName("Dental_Integration");
            this.Property(t => t.Light_clinic).HasColumnName("Light_clinic");
            this.Property(t => t.Dental).HasColumnName("Dental");
            this.Property(t => t.Financial).HasColumnName("Financial");
            this.Property(t => t.Inpatient).HasColumnName("Inpatient");
            this.Property(t => t.Outpatient).HasColumnName("Outpatient");
        }
    }
}
